package cn.bone.demo.mongo.bean2;

import org.bson.types.ObjectId;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;

import java.util.Date;

/**
 * Created by MD-01 on 2016/9/27.
 * 工单类
 */
@Entity("workOrder")
public class WorkOrder {
    //主键
    @Id
    private ObjectId id;
    //创建人
    private String creatememberId;
    //创建时间
    private Date createTime;
    //模版id
    private String templateId;
    //线路id
    private String routeId;
    //执行人id
    private String executeMemberId;
    //有效期开始时间
    private Date startTime;
    //有效期结束时间
    private Date endTime;
    //是否删除
    private Boolean isDel;

    public ObjectId getId() {
        return id;
    }

    public void setId(ObjectId id) {
        this.id = id;
    }

    public String getCreatememberId() {
        return creatememberId;
    }

    public void setCreatememberId(String creatememberId) {
        this.creatememberId = creatememberId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getTemplateId() {
        return templateId;
    }

    public void setTemplateId(String templateId) {
        this.templateId = templateId;
    }

    public String getRouteId() {
        return routeId;
    }

    public void setRouteId(String routeId) {
        this.routeId = routeId;
    }

    public String getExecuteMemberId() {
        return executeMemberId;
    }

    public void setExecuteMemberId(String executeMemberId) {
        this.executeMemberId = executeMemberId;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Boolean getIsDel() {
        return isDel;
    }

    public void setIsDel(Boolean isDel) {
        this.isDel = isDel;
    }
}
